/**
 * @Title: NoMappingHandler.java
 * @Package: com.itic.appbase.framework.exception
 * @author: idong
 * @date: May 20, 2015 9:56:48 AM
 * @version: V1.0
 */

package com.itic.appbase.framework.exception;

import com.itic.appbase.framework.common.controller.BaseController;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <p>
 * Company: itic
 * </p>
 * 
 * @author: idong
 * @date: May 20, 2015 9:56:48 AM
 * @version: V1.0
 */
@Controller
@RequestMapping(value = "/error")
public class ErrorCodeHandler
        extends BaseController {
    @RequestMapping(value = "/{errorCode}")
    public String notFoundHandler(@PathVariable String errorCode) {
        return "errors/" + errorCode;
    }
}
